package imper.engine.entity;

public class Position
{
	protected int _PosX;
	protected int _PosY;

	public Position()
	{
	}

	public Position( int pPosX , int pPosY )
	{
		this._PosX = pPosX;
		this._PosY = pPosY;
	}

	public int getPosX()
	{
		return _PosX;
	}

	public void setPosX(int _PosX)
	{
		this._PosX = _PosX;
	}

	public int getPosY()
	{
		return _PosY;
	}

	public void setPosY(int _PosY)
	{
		this._PosY = _PosY;
	}

	public boolean equals(Object o)
	{
		Position position = (Position) o;
		return position.getPosX() == getPosX() && position.getPosY() == getPosY();
	}

	public int hashCode()
	{
		return getPosX() + getPosY() * 1000;
	}
}
